﻿@using ZBJF.Warranty.Common.Enums.InsuranceProducts
@using ZBJF.Warranty.Model
@using EnumHelper = ZBJF.Warranty.Common.Common.EnumHelper
@model ZBJF.Warranty.Model.InsuranceProductOrder
@{
    ViewBag.Title = "支付结果";
}
<div class="desc_forward_title" onclick="history.back(-1)">
    支付结果
</div>
<div class="weui-media-box__title align-center padding-20">
    您的订单已经支付成功！
</div>
<div class="weui-cells weui-cells_form">
    <div class="weui-flex padding-10">
        <div class="weui-cell__hd">
            @Html.DisplayFor(o => o.InsuranceProductName, new { @class = "weui-label" })×@Html.DisplayFor(o => o.BuyCount, new { @class = "weui-label" })
        </div>
        <div class="weui-cell__bd weui-cell_primary align-right">
            @Html.DisplayFor(o => o.SaleRetailPrice, new { @class = "weui-label" })
        </div>
    </div>
    <div class="weui-flex padding-l-10 padding-r-10 padding-b-10">
        <label class="weui-media-box__title">合计金额</label>
        <div class="weui-cell__bd align-right weui-cell_primary red">
            @Model.TotalPirce.ToString("c")
        </div>
    </div>
    <div class="space-4"></div>
    <div class="padding-15 align-left">
        <label>支付方式</label>
        <div class="weui-flex float-right padding-l-10 weui-msg__desc">微信支付</div><img height="25" src="/Images/pay_type_1.png" class="float-right" />
    </div>
</div>
<div class="space-4"></div>
<div class="padding-10">
    <h3>温馨提示</h3>
    <div class="padding-t-10 weui-msg__desc">您所购买商品的卡密已经以短信和邮件发送给您，您也可以点击下方文件链接，保存PDF版商品明细。</div>
</div>
<div class="weui-flex">
    <div class="w-p45">
        <div class="success-contract success-contract-email">@Model.BuyUserEmail</div>
        <div class="success-contract success-contract-phone">@Model.BuyUserPhone</div>
    </div>
    <div class="w-p50">
        <a href="@Url.Action("DownloadDetailAsPDF", "InsuranceProductOrder", new {id = @Model.ID})">
            <div class="success-contract success-contract-pdf">
                点击下载商品详情
            </div>
        </a>
    </div>
</div>
